<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>专业数据处理平台</title>
    <meta name="description" content="这是一个 queueUpdate 页面">
    <meta name="keywords" content="queueUpdate">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <link rel="icon" type="image/png" href="${ctx}/assets/i/favicon.png">
    <link rel="apple-touch-icon-precomposed" href="${ctx}/assets/i/app-icon72x72@2x.png">
    <meta name="apple-mobile-web-app-title" content="Amaze UI"/>
    <link rel="stylesheet" href="${ctx}/assets/css/bootstrap.css">
    <link rel="stylesheet" href="${ctx}/assets/css/amazeui.min.css"/>
    <link rel="stylesheet" href="${ctx}/assets/css/admin.css">
    <link rel="stylesheet" href="${ctx}/assets/css/app.css">
    <link rel="stylesheet" type="text/css" href="${ctx}/assets/css/xcConfirm.css"/>
    
	<link rel="stylesheet" href="${ctx}/assets/css/select2.min.css">
</head>

<body data-type="chart">
        <!--标题-->
        <div class="tpl-content-page-title">
            工作流系统--队列
        </div>
        <!--面包屑-->
        <ol class="am-breadcrumb">
            <li><a href="#" class="am-icon-home">首页</a></li>
            <li><a href="#">调度</a></li>
            <li class="am-active">作业队列修改</li>
        </ol>

        <div class="tpl-portlet-components">

            <div class="tpl-portlet-components">

                <div class="portlet-title">
                    <div class="caption font-green bold">
                        作业队列修改
                    </div>
                </div>

                <div class="am-tabs tpl-index-tabs" data-am-tabs="{noSwipe: 1}">

                    <ul class="am-tabs-nav am-nav am-nav-tabs">
                        <li class="am-active"><a href="#tab1">基本信息</a></li>
                        <li><a href="#tab2">高级配置</a></li>
                        <li><a href="#tab3" onclick="">详情预览</a></li>
                    </ul>

                    <div class="am-tabs-bd">
                        <div class="am-tab-panel am-fade am-in am-active" id="tab1">
                            <div class="tpl-portlet-components">
                                <div class="portlet-title">
                                    <div class="caption font-green">
                                        作业基本信息
                                    </div>
                                </div>
                                <div class="am-g tpl-amazeui-form">
                                    <div class="am-u-sm-12">
                                        <form class="am-form am-form-horizontal" id='data0'>
                                            <div class="am-form-group">
                                                <label for="name" class="am-u-sm-3 am-form-label">队列名称</label>
                                                <div class="am-u-sm-6">
                                                    <input type="text" id="QUEUE_NAME"name ='QUEUE_NAME' placeholder="队列名称"/>
                                                </div>
                                                <p id="check_name_div" class="am-u-sm-3" style="margin-top: 5px;"></p>
                                            </div>

                                            <div class="am-form-group">
                                                <label for="priority" class="am-u-sm-3 am-form-label">队列优先级</label>
                                                <div class="am-u-sm-6">
                                                    <input type="number" min="1" max="100" id="PRIORITY" name='PRIORITY' placeholder="作业优先级 1-100(100最高)"/>
                                                </div>
                                                <p id="check_priority_div" class="am-u-sm-3" style="margin-top: 5px;"></p>
                                            </div>

                                            <div class="am-form-group">
                                                <label for="priority" class="am-u-sm-3 am-form-label">队列作业槽个数</label>
                                                <div class="am-u-sm-6">
                                                    <input type="number" min="0" id="QJOB_LIMIT" placeholder="队列作业槽个数"/>
                                                </div>
                                                <p id="check_job_slot_div" class="am-u-sm-3" style="margin-top: 5px;"></p>
                                            </div>

                                            <div class="am-form-group">
                                                <label for="queue_type"
                                                       class="am-u-sm-3 am-form-label">队列抢占</label>
                                                <div class="am-u-sm-6 am-form">
                                                    <select id="PREEMPTION" name='PREEMPTION'>                                                       
                                                        <option value="PREEMPTIVE">抢占队列</option>
                                                        <option value="PREEMPTABLE">可抢占队列</option>
                                                        <option value="PREEMPTIVEPREEMPTABLE">抢占队列和可抢占队列</option>
                                                    </select>
                                                </div>
                                                <p id="check_queue_type_div" class="am-u-sm-3" style="margin-top: 5px;"></p>
                                                <span class="am-form-caret"></span>
                                            </div>

                                        </form>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="am-tab-panel am-fade" id="tab2">
                            <div class="tpl-portlet-components">
                                <div class="portlet-title">
                                    <div class="caption font-green">
                                        处理命令
                                    </div>
                                </div>
                                <div class="am-g tpl-amazeui-form">
                                    <div class="am-u-sm-12">
                                        <form class="am-form am-form-horizontal" id ='data1'>
                                            <div class="am-form-group" id="pre_command_div">
                                                <label for="pre_command" class="am-u-sm-3 am-form-label">预处理命令</label>
                                                <div class="am-u-sm-6">
                                                    <input type="text" id="PRE_EXEC" name='PRE_EXEC' placeholder="预处理命令"/>
                                                </div>
                                                <p  class="am-u-sm-3" id="check_pre_command_div" style="margin-top: 5px;"></p>
                                            </div>

                                            <div class="am-form-group" id="post_command_div">
                                                <label for="post_command" class="am-u-sm-3 am-form-label">后处理命令</label>
                                                <div class="am-u-sm-6">
                                                    <input type="text" id="POST_EXEC" name='POST_EXEC' placeholder="后处理命令"/>
                                                </div>
                                                <p  class="am-u-sm-3" id="check_post_command_div" style="margin-top: 5px;"></p>
                                            </div>
                                        </form>
                                    </div>
                                </div>
                                <div class="portlet-title">
                                    <div class="caption font-green">
                                        队列资源预留
                                    </div>
                                </div>
                                <div class="am-g tpl-amazeui-form">
                                    <div class="am-u-sm-12">
                                        <form class="am-form am-form-horizontal" id='data2'>
                                            <div class="am-form-group" id="memorynum_div">
                                                <label for="memorynum" class="am-u-sm-3 am-form-label">内存使用量</label>
                                                <div class="am-u-sm-6">
                                                    <input type="number" id="RES_REQ_MEM" name="RES_REQ_MEM" placeholder="内存使用量"/>
                                                </div>
                                                <p  class="am-u-sm-3" id="check_memorynum_div" style="margin-top: 5px;"></p>
                                            </div>

                                            <div class="am-form-group" id="exchange_area_div">
                                                <label for="exchange_area" class="am-u-sm-3 am-form-label">交换区使用量</label>
                                                <div class="am-u-sm-6">
                                                    <input type="number" id="RES_REQ_SWAP" name='RES_REQ_MEM' placeholder="交换区使用量"/>
                                                </div>
                                                <p  class="am-u-sm-3" id="check_exchange_area_div" style="margin-top: 5px;"></p>
                                            </div>
                                        </form>
                                    </div>
                                </div>
                                <div class="portlet-title">
                                    <div class="caption font-green">
                                        资源限制
                                    </div>
                                </div>
                                <div class="am-g tpl-amazeui-form">
                                    <div class="am-u-sm-12">
                                        <form class="am-form am-form-horizontal" id="data3">
                                            <div class="am-form-group" id="max_time_div">
                                                <label for="max_time" class="am-u-sm-3 am-form-label">最大运行时间</label>
                                                <div class="am-u-sm-6">
                                                    <input type="text" id="RUN_LIMIT" name='RUNLIMIT' placeholder="最大运行时间"/>
                                                </div>
                                                <p  class="am-u-sm-3" id="check_max_time_div" style="margin-top: 5px;"></p>
                                            </div>

                                            <div class="am-form-group" id="limit_memorynum_div">
                                                <label for="limit_memorynum" class="am-u-sm-3 am-form-label">内存使用量</label>
                                                <div class="am-u-sm-6">
                                                    <input type="text" id="MEM_LIMIT" name='MEMLIMIT' placeholder="内存使用量"/>
                                                </div>
                                                <p  class="am-u-sm-3" id="check_limit_memorynum_div" style="margin-top: 5px;"></p>
                                            </div>
                                        </form>
                                    </div>
                                </div>
                                <div class="portlet-title">
                                    <div class="caption font-green">
                                        队列负载阈值
                                    </div>
                                </div>
                                <div class="am-g tpl-amazeui-form">
                                    <div class="am-u-sm-12">
                                        <form class="am-form am-form-horizontal"id ='data4'>
<!--                                             <div class="am-form-group" id="memory_div"> -->
<!--                                                 <label for="memory" class="am-u-sm-3 am-form-label">内存</label> -->
<!--                                                 <div class="am-u-sm-6"> -->
<!--                                                     <input type="text" id="memory" placeholder="内存"/> -->
<!--                                                 </div> -->
<!--                                                 <p  class="am-u-sm-3" id="check_memory_div" style="margin-top: 5px;"></p> -->
<!--                                             </div> -->

<!--                                             <div class="am-form-group" id="exchange_div"> -->
<!--                                                 <label for="exchange" class="am-u-sm-3 am-form-label">交换区</label> -->
<!--                                                 <div class="am-u-sm-6"> -->
<!--                                                     <input type="text" id="exchange" placeholder="交换区"/> -->
<!--                                                 </div> -->
<!--                                                 <p  class="am-u-sm-3" id="check_exchange_div" style="margin-top: 5px;"></p> -->
<!--                                             </div> -->

<!--                                             <div class="am-form-group" id="scheduling_threshold_div"> -->
<!--                                                 <label for="scheduling_threshold" class="am-u-sm-3 am-form-label">限制进程调度阈值</label> -->
<!--                                                 <div class="am-u-sm-6"> -->
<!--                                                     <input type="text" id="scheduling_threshold" placeholder="限制进程调度阈值"/> -->
<!--                              </div>
</div>                       </div> -->
<!--                                                 <p  class="am-u-sm-3" id="check_scheduling_threshold_div" style="margin-top: 5px;"></p> -->
<!--                                             </div> -->

                                            <div class="am-form-group" id="suspend_threshold_div">
                                                <label for="exchange" class="am-u-sm-3 am-form-label">限制进程</label>
                                                <div class="am-u-sm-6">
                                                    <input type="text" id="LIMITED_PROCESS" name='LIMITED_PROCESS' placeholder="受限制进程的进程名"/>
                                                </div>
                                                <p  class="am-u-sm-3" id="check_suspend_threshold_div" style="margin-top: 5px;"></p>
                                            </div>
                                        </form>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="am-tab-panel am-fade" id="tab3">
                            <div class="tpl-portlet-components">
                                <div class="portlet-title">
                                    <div class="caption font-green">
                                        详情预览
                                    </div>
                                    <div class="action" style="float: right;">
                                        <ul class="actions-btn">
                                            <li class="blue" id='saveUpdate'>更新</li>
                                        </ul>
                                    </div>
                                </div>
                                <div class="am-g tpl-amazeui-form">
                                    <div class="am-u-sm-12 am-u-md-12" id="deleteLable">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

<script src="${ctx}/assets/js/jQuery/jquery-1.9.1.js"></script>
<script src="${ctx}/assets/js/jQuery/jquery.min.js"></script>
<%-- <script src="${ctx}/assets/js/utils.js"></script> --%>
<script src="${ctx}/assets/js/common/config.js"></script>
<script src="${ctx}/assets/js/common/select2.full.js"></script>
<script src="${ctx}/assets/js/common/amazeui.min.js"></script>
<script src="${ctx}/assets/js/common/app.js"></script>
<script src="${ctx}/assets/js/common/xcConfirm.js"></script>
<script src="${ctx}/assets/js/common/common.fun.js"></script>
<script src="${ctx}/assets/js/layer/layer.js"></script>
<script>
var id='<%= request.getAttribute("queueId")%>';
</script>
<script src="${ctx}/assets/js/queue/queueUpdate.js"></script>
</body>

</html>